<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>导入的邮件</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            background: url('/static/background.jpg') no-repeat center center fixed;
            background-size: cover;
        }
        .container {
            text-align: center;
            background-color: rgba(255, 255, 255, 0.8);
            padding: 20px;
            border-radius: 10px;
            margin-top: 5%;
            width: 80%;
            max-width: 600px;
        }
        h1 {
            font-size: 48px;
            margin-bottom: 40px;
        }
        ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        li {
            text-align: left;
            font-size: 18px;
            margin-bottom: 20px;
            padding: 10px;
            border-bottom: 1px solid #ccc;
        }
        li:last-child {
            border-bottom: none;
        }
        strong {
            font-weight: bold;
        }
        button {
            margin-top: 10px;
            padding: 10px 20px;
            font-size: 18px;
            text-decoration: none;
            color: white;
            background-color: #007bff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        a {
            text-decoration: none;
        }
    </style>
</head>
<body>
    <header></header>
    <div class="container">
        <section id="main">
            <h1>导入的邮件</h1>
            <ul>
                {% for email in emails %}
                <li>
                    <strong>主题：</strong>{{ email.subject }}<br>
                    <strong>发件人：</strong>{{ email.from }}<br>
                    <strong>内容：</strong>{{ email.body }}<br>
                </li>
                {% endfor %}
            </ul>
            <a href="{{ url_for('main.inbox') }}"><button>返回收件箱</button></a>
        </section>
    </div>
</body>
</html>
